﻿using LPLS.Commons.DBModule;
using LPLS.Commons.Enums;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPLS.DBEntities.OEEModule.OEEModels.DataStatisticModels
{

    [DatabaseKey(DatabaseEnum.CollectionDataResult)]
    [SugarTable(nameof(CompentDataStatistics))]
    public  class CompentDataStatistics
    {

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ID { get; set; }

        public Guid  DeviceID { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string DeviceName { get; set; }
        /// <summary>
        /// 炉管状态
        /// </summary>
        public StatusEnum Status { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string CompentStatusDesc { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 持续时间
        /// </summary>
        public int TotalSecondTime { get; set; }

        [SugarColumn(IsNullable = true)]
        public string AlarmCode { get; set; } = "";

        [SugarColumn(IsIgnore = true)]
        /// <summary>
        /// 部件代码
        /// </summary>
        public string ComponentCode { get; set; }
        [SugarColumn(IsIgnore =true)]
        public string ComponentName { get; set; }
        /// <summary>
        /// 部件id
        /// </summary>
        public Guid CompentId { get; set; }

        [SugarColumn(IsIgnore =true)]
        public DeviceComponentTypeEnum CompentTypeEnum { get; set; }
        [SugarColumn(IsIgnore = true)]
        public string CompentTypeName { get; set; }

    }
}
